package com.eleadmin.common.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eleadmin.common.system.entity.Leavemessage;
import com.eleadmin.common.system.param.LeavemessageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper
 *
 * @author EleAdmin
 * @since 2024-02-26 22:09:04
 */
public interface LeavemessageMapper extends BaseMapper<Leavemessage> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<Leavemessage>
     */
    List<Leavemessage> selectPageRel(@Param("page") IPage<Leavemessage> page,
                                     @Param("param") LeavemessageParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<Leavemessage> selectListRel(@Param("param") LeavemessageParam param);

}
